<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% request.setCharacterEncoding("UTF-8"); %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table border="2" width="1200" cellspacing="0" cellpadding="3" bordercolor="#999999" style="border-collapse:collapse;" rules="rows" frame="box">
		<tr>
			<td align="center" width="8%">NO</td>
			<td align="center" width="28%">Date</td>
			<td align="center" width="8%">Room_number</td>
			<td align="center" width="8%">Writer</td>
			<td align="center" width="8%">Reader</td>
			<td align="center" width="40%">Content</td>
		</tr>
		
		<c:forEach items="${requestScope.resList }" var="map1">
			<tr>
				<td align="center">${map1.mto.msg_no }</td>
				<td align="center">${map1.mto.msg_date }</td>
				<td align="center">${map1.mto.roomNo }</td>
				<td align="center">${map1.writerName }</td>
				<td align="center">${map1.mto.reader }</td>
				<td>${map1.mto.msg_content }</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>